package a_doubleWrite;

import java.util.ArrayList;
import java.util.List;

/**
 * todo
 *
 * @author luolidong
 * @version 1.0
 * @create 2021-08-04 15:02
 */
public class L488 {
    public List<Integer> findDisappearedNumbers(int[] nums) {
        List<Integer> list=new ArrayList<>();
        int[] temp=new int[nums.length+1];
        for (int num : nums) {
            temp[num]++;
        }
        for (int i = 1; i <temp.length ; i++) {
            if(temp[i]==0){
                list.add(i);
            }
        }
        return list;
    }
}
